.nav-link {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.nav-link::before,
.nav-link::after {
  content: "";
  position: absolute;
  display: block;
  border: 0px solid transparent;
  width: 0%;
  height: 0%;
  transition: all 0.3s ease;
}

.nav-link::after {
  top: 0;
  left: 0;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
}

.nav-link::before {
  right: 0;
  bottom: 0;
  border-bottom: 2px solid transparent;
  border-right: 2px solid transparent;
}

.nav-link:hover::before,
.nav-link:hover::after,
.nav-link.active::before,
.nav-link.active::after {
  width: 10px;
  height: 10px;
  border-color: #dc3545;
}

/* .nav-link.active {
  color: #dc3545 !important;
  
} */



.bg-black{
 background-color: black;
}






.hightlight_li {
  border-bottom: 2px dotted grey;
}

.hightlight_heading {
  color: white;
  background: #222222;
  padding-top: 8px;
  padding-bottom: 8px;
}

.highlight_ul {
  color: white;
  padding-left: 10px;
  list-style: none;
  line-height: 2.5;
  border-bottom: 1px dashed #5d5d5d;
  background: #333;
}

.news_div {
  width: 90%;
  margin: 0 auto;
  text-align: justify;
}

.marque {
  background: #333;
  color: white;
  height: 313px;
}

.featured_image {
  background-image: url("assets/img/featured-parallax1.png");
}

.sticky-top {
  position: sticky !important;
  top: 0;
  z-index: 1020;
}



.courses-content {
  border: 1px solid #333;
  display: inline-block;
  margin-left: 0.4%;
  margin-right: 0.3%;
  margin-bottom: 1%;
  padding: 0;
}

.courses-content h3 {
  text-align: center;
  color: #FFF;
  margin: 0;
  padding: 5px 10px;
  font-size: 16px;
  font-weight: bold;
  height: 70px;
  line-height: 2;
  background-color: #222;
}

.courses-content p {
  text-align: left;
  padding: 10px 10px;
  line-height: 2;
  margin: 0;
  border-bottom: 1px solid #333;
}

.courses-content p:last-child {
  border-bottom: none;
}

.courses-image {
  text-align: center;
  width: 50%;
  margin: 0 auto;
}


/* ===== RESPONSIVE DESIGN - MOBILE FIRST ===== */

/* Base Styles */
body {
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Responsive Typography */
h1 { font-size: 1.8rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { font-size: 0.9rem; }

/* Tablet Styles */
@media (min-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.8rem; }
  h4 { font-size: 1.5rem; }
  h5 { font-size: 1.3rem; }
  h6 { font-size: 1.1rem; }
  p { font-size: 1rem; }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 2rem; }
  h4 { font-size: 1.7rem; }
  h5 { font-size: 1.4rem; }
  h6 { font-size: 1.2rem; }
  p { font-size: 1.1rem; }
}

.container-fluid {
  max-width: 100%;
  overflow-x: hidden;
}

.row {
  margin-left: 0;
  margin-right: 0;
}

/* Responsive Row Spacing */
@media (max-width: 576px) {
  .row {
    margin-bottom: 1rem;
  }
  
  .row [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.overflow-hidden {
  overflow: hidden !important;
}

/* Main container constraints */
.main-container {
  max-width: 100%;
  overflow-x: hidden;
}

/* Ensure all sections stay within viewport */
section {
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== HEADER RESPONSIVE DESIGN ===== */

.bg-white .container-fluid {
  max-width: 100%;
  overflow-x: hidden;
}

.bg-white img {
  max-width: 100% !important;
  height: auto;
  display: block;
}

/* Header Logo Responsive */
@media (max-width: 576px) {
  .bg-white img {
    min-height: 120px !important;
    max-height: 120px !important;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .bg-white img {
    min-height: 140px !important;
    max-height: 140px !important;
  }
}

@media (min-width: 769px) {
  .bg-white img {
    min-height: 160px !important;
    max-height: 160px !important;
  }
}

/* Top Header Bar Responsive */
.bg-danger .container-xxl {
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 768px) {
  .bg-danger .row {
    text-align: center !important;
  }
  
  .bg-danger .col-md-6 {
    margin-bottom: 0.5rem;
  }
  
  .bg-danger p {
    font-size: 0.85rem;
  }
}

.center_page{
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to right, #9b5de5, #f15bb5, #f25f4c);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.righttext {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 8px 8px 0;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.glassmorphism {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}



.shadow{
  border-top: 5px solid gray;
  border-radius: 2px;
}












.gallery-title
{
    font-size: 36px;
    color: #42B32F;
    text-align: center;
    font-weight: 500;
    margin-bottom: 70px;
}
.gallery-title:after {
    content: "";
    position: absolute;
    width: 7.5%;
    left: 46.5%;
    height: 45px;
    border-bottom: 1px solid #5e5e5e;
}
.filter-button
{
    font-size: 18px;
    border: 1px solid #42B32F;
    border-radius: 5px;
    text-align: center;
    color: #42B32F;
    margin-bottom: 30px;

}
.filter-button:hover
{
    font-size: 18px;
    border: 1px solid #42B32F;
    border-radius: 5px;
    text-align: center;
    color: #ffffff;
    background-color: #42B32F;

}
.btn-default:active .filter-button:active
{
    background-color: #42B32F;
    color: white;
}

.port-image
{
    width: 100%;
}

.gallery_product
{
    margin-bottom: 30px;
}


.navbar-toggler-icon {
  background-image: url("assets/img/slider.png");
}

/* ===== CAROUSEL RESPONSIVE DESIGN ===== */

.carousel-bg {
  height: 50vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

@media (min-width: 576px) {
  .carousel-bg {
    height: 60vh;
    min-height: 400px;
  }
}

@media (min-width: 768px) {
  .carousel-bg {
    height: 70vh;
    min-height: 500px;
  }
}

@media (min-width: 1024px) {
  .carousel-bg {
    height: 80vh;
    min-height: 600px;
  }
}

.carousel-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}

.carousel-content {
  text-align: center;
  color: white;
  max-width: 800px;
  z-index: 2;
}

/* Carousel Text Responsive */
.carousel-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  line-height: 1.2;
}

@media (min-width: 576px) {
  .carousel-title {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 768px) {
  .carousel-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .carousel-title {
    font-size: 3.5rem;
  }
}

.carousel-subtitle {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

@media (min-width: 576px) {
  .carousel-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 768px) {
  .carousel-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .carousel-subtitle {
    font-size: 1.5rem;
  }
}

.carousel-description {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
  line-height: 1.5;
}

@media (min-width: 576px) {
  .carousel-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .carousel-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .carousel-description {
    font-size: 1.2rem;
  }
}

.carousel-buttons {
  margin-top: 2rem;
}

.carousel-buttons .btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Carousel Indicators Styling */
.carousel-indicators {
  bottom: 30px;
}

.carousel-indicators [data-bs-target] {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin: 0 8px;
  background-color: rgba(255,255,255,0.5);
  border: 2px solid white;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background-color: #dc3545;
  transform: scale(1.2);
}

/* Carousel Controls Styling */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev {
  left: 30px;
}

.carousel-control-next {
  right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(220,53,69,0.8);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 25px;
  height: 25px;
}

/* Carousel Fade Animation */
.carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: 0.8s;
  transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active.carousel-item-start,
.carousel-fade .carousel-item.active.carousel-item-end {
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-bg {
    height: 60vh;
    min-height: 400px;
  }
  
  .carousel-title {
    font-size: 2.5rem;
  }
  
  .carousel-subtitle {
    font-size: 1.2rem;
  }
  
  .carousel-description {
    font-size: 1rem;
  }
  
  .carousel-buttons .btn {
    padding: 10px 25px;
    font-size: 1rem;
    margin: 5px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 50px;
    height: 50px;
  }
  
  .carousel-control-prev {
    left: 15px;
  }
  
  .carousel-control-next {
    right: 15px;
  }
}

@media (max-width: 576px) {
  .carousel-bg {
    height: 50vh;
    min-height: 350px;
  }
  
  .carousel-title {
    font-size: 2rem;
  }
  
  .carousel-subtitle {
    font-size: 1.1rem;
  }
  
  .carousel-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .carousel-buttons .btn {
    display: block;
    width: 100%;
    margin: 10px 0;
  }
}

/* Animation for carousel content */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-item.active .carousel-content {
  animation: slideInUp 0.8s ease-out;
}

/* Nagpur University Style Slider */
.slider {
  position: relative;
  overflow: hidden;
  height: 450px;
  background: rgb(85,85,85);
  border-radius: 0;
  box-shadow: none;
  display: block !important;
  visibility: visible !important;
  will-change: transform, opacity;
  transition: opacity 0.5s ease-in-out;
}


.sliderwrapper {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: rgb(85,85,85);
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  opacity: 0;
  visibility: hidden;
  background: rgb(85,85,85);
  backdrop-filter: blur(2px);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}


.slide:first-child {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.leftimg {
  flex: 1.5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.leftimg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(220,53,69,0.2) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.nav-link::before,
.nav-link::after {
  content: "";
  position: absolute;
  display: block;
  border: 0px solid transparent;
  width: 0%;
  height: 0%;
  transition: all 0.3s ease;
}

.nav-link::after {
  top: 0;
  left: 0;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
}

.nav-link::before {
  right: 0;
  bottom: 0;
  border-bottom: 2px solid transparent;
  border-right: 2px solid transparent;
}

.nav-link:hover::before,
.nav-link:hover::after,
.nav-link.active::before,
.nav-link.active::after {
  width: 10px;
  height: 10px;
  border-color: #dc3545;
}

.slide-logo {
  max-width: 180px;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}


.righttext {
  width: 40%;
  height: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white !important;
  border-radius: 0;
  box-shadow: none;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, filter 0.3s ease;
  position: relative;
  overflow: hidden;
  padding: 30px 25px;
  margin: 0;
  transform: translateX(0);
}

.righttext.fade-out {
  opacity: 0;
  filter: blur(1px);
  transform: translateX(20px) translateY(10px);
  transition: opacity 0.6s ease-out, filter 0.6s ease-out, transform 0.6s ease-out;
}

/* .righttext::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.1);
  z-index: 1;
} */

.titlealign {
  text-align: center;
  width: 100%;
  z-index: 10;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.titlealign h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
  text-align: center;
  color: #ffffff !important;
  z-index: 10;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.titlealign h2.fade-out {
  opacity: 0;
  transform: translateY(-15px);
}

.titlealign h2 b {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.titlealign h2 span {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffd700 !important;
  display: block;
  margin-top: 8px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.titlealign p {
  font-size: 1.0rem;
  line-height: 1.6;
  margin-top: 15px;
  color: #e8f4fd !important;
  text-align: center;
  z-index: 10;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.titlealign p.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

/* Right sidebar styling */
.bg-blue {
  background: rgb(0, 0, 0);
  color: #fff;
  min-height: 450px;
  margin: 0;
  padding: 15px;
  border-left: none;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  overflow: hidden;
  word-wrap: break-word;
}

.bg-blue.fade-out {
  opacity: 0.7;
  transform: translateX(10px);
}

.rightlinks h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
  border-bottom: 2px solid #ffd700;
  padding-bottom: 8px;
}

.rightlinks ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rightlinks ul li {
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.rightlinks ul li:last-child {
  border-bottom: none;
}

.rightlinks ul li a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
  transition: all 0.3s ease;
  display: block;
  position: relative;
  padding-left: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.rightlinks ul li a:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #ffd700;
  font-weight: bold;
  transition: all 0.3s ease;
}

.rightlinks ul li a:hover {
  color: #ffd700;
  padding-left: 25px;
  text-shadow: 0 0 5px rgba(255,215,0,0.3);
}

.rightlinks ul li a:hover:before {
  transform: translateX(5px);
}

.mar-top-200 {
  margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .slider {
    height: 300px !important;
    transition: opacity 0.5s ease-in-out, height 0.3s ease;
  }
  
  .col-md-9, .col-md-3 {
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .leftimg {
    width: 100% !important;
    height: 60% !important;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, filter 0.3s ease, width 0.3s ease, height 0.3s ease;
  }
  
  .leftimg.fade-out {
    opacity: 0;
    filter: blur(1px) brightness(0.8);
    transform: translateY(-10px) scale(0.98);
  }
  
  .righttext {
    width: 100% !important;
    height: 40% !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, filter 0.3s ease, width 0.3s ease, height 0.3s ease;
  }
  
  .righttext.fade-out {
    opacity: 0;
    filter: blur(0.5px);
    transform: translateY(15px);
  }
  
  .slide {
    flex-direction: column !important;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out, transform 0.3s ease, flex-direction 0.3s ease;
  }
  
  .rightlinks {
    margin-top: 0px;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, margin-top 0.3s ease;
  }
  
  .bg-blue {
    min-height: auto;
    padding: 20px 0;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, min-height 0.3s ease, padding 0.3s ease;
  }
}

@media (max-width: 1200px) {
  .titlealign h2 {
    font-size: 1.6rem;
  }
  
  .titlealign h2 span {
    font-size: 1rem;
  }
  
  .titlealign p {
    font-size: 0.9rem;
  }
  
  .slide-logo {
    max-width: 150px;
    max-height: 150px;
  }
}

@media (max-width: 992px) {
  .slider {
    height: 380px;
  }
  
  .titlealign h2 {
    font-size: 1.4rem;
  }
  
  .titlealign h2 span {
    font-size: 0.95rem;
  }
  
  .titlealign p {
    font-size: 0.85rem;
  }
  
  .righttext {
    padding: 20px 15px;
  }
  
  .slide-logo {
    max-width: 130px;
    max-height: 130px;
  }
}

/* News marquee styling for smooth continuous scrolling */
.marque {
  overflow: hidden;
  background: transparent;
}

.news_div {
  height: auto;
  padding: 10px 0;
}

.news_div p {
  margin-bottom: 15px;
  line-height: 1.4;
  padding: 5px 0;
}

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */

/* ===== NAVIGATION RESPONSIVE ===== */
@media (max-width: 991px) {
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-item {
    margin: 0.25rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  .navbar-toggler {
    border: 2px solid white !important;
    padding: 0.5rem;
  }
}

/* ===== TABLE RESPONSIVE ===== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .table {
    font-size: 0.85rem;
  }
  
  .table td, .table th {
    padding: 0.5rem 0.25rem;
    white-space: nowrap;
  }
  
  .table td[style*="background-color: black"] {
    font-size: 0.8rem;
    padding: 0.4rem 0.2rem;
  }
}

@media (max-width: 576px) {
  .table {
    font-size: 0.75rem;
  }
  
  .table td, .table th {
    padding: 0.4rem 0.2rem;
  }
  
  .table td[style*="background-color: black"] {
    font-size: 0.7rem;
    padding: 0.3rem 0.15rem;
  }
}

/* ===== COURSE CONTENT RESPONSIVE ===== */
@media (max-width: 768px) {
  .courses-content {
    margin: 0.5rem 0;
    width: 100%;
  }
  
  .courses-content h3 {
    font-size: 1.1rem;
    height: auto;
    min-height: 50px;
    line-height: 1.4;
    padding: 8px;
  }
  
  .courses-content p {
    font-size: 0.85rem;
    padding: 8px;
    line-height: 1.5;
  }
}

@media (max-width: 576px) {
  .courses-content h3 {
    font-size: 1rem;
    padding: 6px;
  }
  
  .courses-content p {
    font-size: 0.8rem;
    padding: 6px;
  }
}

/* ===== IMAGES RESPONSIVE ===== */
.img-responsive, .img-fluid {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .courses-image {
    width: 80%;
  }
}

@media (max-width: 576px) {
  .courses-image {
    width: 100%;
  }
}

/* ===== BUTTONS RESPONSIVE ===== */
@media (max-width: 768px) {
  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .carousel-buttons .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
    margin: 0.25rem;
  }
}

@media (max-width: 576px) {
  .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  
  .carousel-buttons .btn {
    font-size: 0.85rem;
    padding: 8px 16px;
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* ===== GALLERY RESPONSIVE ===== */
@media (max-width: 768px) {
  .gallery-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .gallery-title:after {
    width: 15%;
    left: 42.5%;
  }
  
  .filter-button {
    font-size: 0.9rem;
    margin: 0.25rem;
    padding: 0.5rem 1rem;
  }
  
  .gallery_product {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .gallery-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .gallery-title:after {
    width: 25%;
    left: 37.5%;
  }
  
  .filter-button {
    font-size: 0.85rem;
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* ===== FORMS RESPONSIVE ===== */
@media (max-width: 768px) {
  .form-control {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
  
  .form-label {
    font-size: 0.9rem;
    font-weight: 600;
  }
}

@media (max-width: 576px) {
  .form-control {
    font-size: 0.85rem;
    padding: 0.4rem;
  }
  
  .form-label {
    font-size: 0.85rem;
  }
}

/* ===== CARDS RESPONSIVE ===== */
@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .card-title {
    font-size: 1rem;
  }
  
  .card-text {
    font-size: 0.85rem;
  }
}

/* ===== SPACING RESPONSIVE ===== */
@media (max-width: 768px) {
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  .my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
  
  .my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  .py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  
  .my-5 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .my-4 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }
}

/* ===== UTILITY CLASSES FOR RESPONSIVE ===== */
.text-responsive {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .text-responsive {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .text-responsive {
    font-size: 0.85rem;
  }
}

/* Hide elements on mobile */
@media (max-width: 768px) {
  .d-md-none-mobile {
    display: none !important;
  }
}

/* Show only on mobile */
@media (min-width: 769px) {
  .d-mobile-only {
    display: none !important;
  }
}

/* ===== FOOTER RESPONSIVE ===== */
.main-footer {
  margin-top: 3rem !important;
}

.footer-area {
  padding: 3rem 0 1rem 0;
  background-size: cover !important;
  background-position: center !important;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
}

.footer-dec {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.address-list li {
  color: #ccc;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.address-list li i {
  color: #dc3545;
  margin-right: 0.5rem;
  width: 20px;
}

.quick-links li {
  margin-bottom: 0.5rem;
}

.quick-links li a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.quick-links li a:hover {
  color: #dc3545;
}

.quick-links li a i {
  color: #dc3545;
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .footer-area {
    padding: 2rem 0 1rem 0;
  }
  
  .footer-logo {
    margin-bottom: 1.5rem;
  }
  
  .footer-logo img {
    max-width: 150px;
  }
  
  .footer-dec {
    font-size: 0.85rem;
    text-align: center;
  }
  
  .address-list li {
    font-size: 0.85rem;
    text-align: center;
  }
  
  .quick-links {
    text-align: center;
  }
  
  .quick-links li a {
    font-size: 0.85rem;
  }
  
  .main-footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .footer-area {
    padding: 1.5rem 0 1rem 0;
  }
  
  .footer-logo img {
    max-width: 120px;
  }
  
  .footer-dec {
    font-size: 0.8rem;
  }
  
  .address-list li {
    font-size: 0.8rem;
  }
  
  .quick-links li a {
    font-size: 0.8rem;
  }
  
  .main-footer h4 {
    font-size: 1rem;
  }
}

/* ===== COURSE PAGES RESPONSIVE ===== */
.distance-col-left, .distance-col-right {
  padding: 1rem;
}

.rd-course h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #333;
  text-align: center;
}

.about-content {
  padding: 2rem 1rem;
}

@media (max-width: 768px) {
  .distance-col-left, .distance-col-right {
    padding: 0.5rem;
  }
  
  .rd-course h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }
  
  .about-content {
    padding: 1rem 0.5rem;
  }
  
  .container-tb {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Course page specific table responsive */
  .table-border {
    border: 1px solid #ddd;
  }
  
  .table-border td {
    border: 1px solid #ddd;
    vertical-align: top;
  }
  
  .table-border thead td {
    font-weight: bold;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .rd-course h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .distance-col-left, .distance-col-right {
    padding: 0.25rem;
  }
  
  .about-content {
    padding: 0.5rem 0.25rem;
  }
  
  /* Mobile table optimization */
  .table-responsive {
    border: none;
  }
  
  .table-border td {
    padding: 0.3rem 0.2rem;
    font-size: 0.75rem;
  }
  
  .table-border thead td {
    font-size: 0.7rem;
    padding: 0.4rem 0.2rem;
  }
  
  .table-border ul {
    margin: 0;
    padding-left: 1rem;
  }
  
  .table-border ul li {
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
  }
}

/* ===== WELCOME SECTION RESPONSIVE ===== */
.welcome-area {
  padding: 2rem 0;
}

.main-heading1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.main-heading2 {
  font-size: 1.5rem;
  color: #dc3545;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .welcome-area {
    padding: 1.5rem 0;
    text-align: center;
  }
  
  .main-heading1 {
    font-size: 1.6rem;
  }
  
  .main-heading2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .welcome-area {
    padding: 1rem 0;
  }
  
  .main-heading1 {
    font-size: 1.4rem;
  }
  
  .main-heading2 {
    font-size: 1.1rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .navbar, .carousel, .btn, .main-footer {
    display: none !important;
  }
  
  .container-fluid {
    max-width: 100%;
    padding: 0;
  }
  
  .table {
    font-size: 10pt;
  }
  
  .table td {
    padding: 0.2rem;
  }
}